import java.util.Scanner;

public class ASD {
    public static void main(String args){
        System.out.println("************************");
        System.out.println("*微型计算机              *");
        System.out.println("*1求和                  *");
        System.out.println("*2求差                  *");
        System.out.println("*3求积                  *");
        System.out.println("*4求商                  *");
        System.out.println("*5求余                  *");
        System.out.println("*Q退出                  *");
        System.out.println("*请选择你的操作           *");
        System.out.println("************************");
        int qw;
        int qr;
        int qe;
        Scanner S = new Scanner(System.in);
        qw= S.nextInt();
        Scanner N = new Scanner(System.in);
        qr= N.nextInt();
        Scanner X = new Scanner(System.in);
        qe= X.nextInt();
        if(qw%1==0){
            System.out.println(qe+qr);
        }
        if(qw%2==0){
            System.out.println(qr-qe);
        }
        if(qw%3==0){
           System.out.println(qr*qe);
        }
        if(qw%4==0){
            System.out.println(qr/qe);
        }
        if (qw%5==0){
            System.out.println(qr%qe);
        }
    }
}
